home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / ATL_Samples / count / count.idl < prev    next >
Encoding:
Text File  |  1999-02-19  |  1.7 KB  |  72 lines

  1. // NOTE:  ATL-BASED CONTROLS ARE ONLY SUPPORTED ON WINDOWS CE 2.0 OR LATER
  2.  
  3. #if defined(_WIN32_WCE) && _WIN32_WCE < 200
  4. #error "This sample can only be compiled for Windows CE 2.0 or later."
  5. #endif
  6.  
  7. #include <olectl.h>
  8. // Count.idl : IDL source for Count.dll
  9. //
  10.  
  11. // This file will be processed by the MIDL tool to
  12. // produce the type library (Count.tlb) and marshalling code.
  13.  
  14. import "oaidl.idl";
  15. import "ocidl.idl";
  16.  
  17.     
  18.  
  19.     [
  20.         object,
  21.         uuid(30533700-41C6-11D1-9307-00600820B4FF),
  22.         dual,
  23.         helpstring("ICounter Interface"),
  24.         pointer_default(unique)
  25.     ]
  26.     interface ICounter : IDispatch
  27.     {
  28.         [id(1), helpstring("method StartCounting")] HRESULT StartCounting();
  29.         [id(2), helpstring("method SetMaxCounter")] HRESULT SetMaxCounter([in]int nMax);
  30.         [id(3), helpstring("method GetInfoFromCounter")] HRESULT GetInfoFromCounter([in]BSTR pInfo);
  31.     };
  32.     [
  33.         object,
  34.         uuid(30533702-41C6-11D1-9307-00600820B4FF),
  35.         dual,
  36.         helpstring("IObject1 Interface"),
  37.         pointer_default(unique)
  38.     ]
  39.     interface IObject1 : IDispatch
  40.     {
  41.         [id(1), helpstring("method SetMax")] HRESULT SetMax([in]int nMax);
  42.         [id(2), helpstring("method Start")] HRESULT Start();
  43.         [id(3), helpstring("method Initialize")] HRESULT Initialize([in]DWORD pInterface);
  44.     };
  45. [
  46.     uuid(1113B1A5-41BA-11D1-9307-00600820B4FF),
  47.     version(1.0),
  48.     helpstring("Count 1.0 Type Library")
  49. ]
  50. library COUNTLib
  51. {
  52.     importlib("stdole32.tlb");
  53.     importlib("stdole2.tlb");
  54.  
  55.     [
  56.         uuid(30533701-41C6-11D1-9307-00600820B4FF),
  57.         helpstring("Counter Class")
  58.     ]
  59.     coclass Counter
  60.     {
  61.         [default] interface ICounter;
  62.     };
  63.     [
  64.         uuid(30533703-41C6-11D1-9307-00600820B4FF),
  65.         helpstring("Object1 Class")
  66.     ]
  67.     coclass Object1
  68.     {
  69.         [default] interface IObject1;
  70.     };
  71. };
  72.